import Taro, { eventCenter } from '@tarojs/taro'
import { Component } from 'react'
import { View, Text } from '@tarojs/components'
import './index.scss'

class Index extends Component {

  state = {
    message: 'Hello world!'
  }

  componentWillMount () { }

  componentDidMount() {
    console.log(`Taro is`, Taro)
  }

  componentWillUnmount () { }

  componentDidShow () { }

  componentDidHide () { }

  render () {
    return (
      <View className='index'>
        <Text>{ this.state.message }</Text>
      </View>
    )
  }
 }

export default Index;
